Chuyển tới nội dung chính

Set Role Info

In Unity, you need to call method after login SDK successful + Choose Server successful + login into Game successful. We need get roleID, serverGameID, ... from database's game.

Method:

    public static void SetRoleInfo(string _serverGameID, string _serverGameName, string _roleID, string _charName, int _level, string _charClassName, string _guildName, int _vipLevel)

Example:

...
string _serverGameID = "1";
string _serverGameName = "Quách Tĩnh";
string _roleID = "TestRoleID";
string _roleName = "TestRoleName";
int _level = 1; // OPTIONAL
string _charClassName = ""; // OPTIONAL
string _guildName = ""; // OPTIONAL
int _vipLevel = 1; // OPTIONAL

SDKAPI.SendAPISetRoleInfo(_serverGameID, _serverGameName, _roleID, _roleName, _level, _charClassName, _guildName, _vipLevel); // Set RoleInfo (NEW UPDATE)
...